﻿using Polaris.Domain.Model.Dto.Said.Request;
using Polaris.Domain.Model.Entity.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Domain.Interfaces.Admin
{
    public interface ISaid
    {
        /// <summary>
        /// 创建说说
        /// </summary>
        /// <param name="create"></param>
        /// <param name="userId"></param>
        Task CreateSaid(CreateSaidRequest create, Guid userId);

        /// <summary>
        /// 删除说说
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteSaid(string id,Guid userId);

        /// <summary>
        /// 修改说说
        /// </summary>
        /// <param name="update"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task UpdateSaid(SaidInfoResponse update, Guid userId);

        /// <summary>
        /// 获取说说列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<PaginationInfo<SaidInfoResponse>> GetSaidList(SaidQueryRequest query);

        /// <summary>
        /// 根据id获取数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<SaidInfoResponse> GetSaidById(string id);
    }
}
